home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 December / Australian PC User - December 2003 (CD2).iso / software / apps / files / dwmx2k4.exe / Disk1 / data1.cab / Configuration_En / Objects / Media / Plugin.js < prev    next >
Encoding:
JavaScript  |  2003-09-05  |  697 b   |  27 lines

  1. // Copyright 2000, 2001, 2002, 2003 Macromedia, Inc. All rights reserved.
  2.  
  3. //---------------     API FUNCTIONS    ---------------
  4.  
  5. function isDOMRequired() { 
  6.     // Return false, indicating that this object is available in code view.
  7.     return false;
  8. }
  9.  
  10. function isAsset() {
  11.     return true;
  12. }
  13.  
  14. function objectTag(assetArgs) {
  15.   var bDialogState = dw.getShowDialogsOnInsert(); // Was dialog shown?
  16.   var newURL = dw.doURLEncoding(browseForFileURL());
  17.   
  18.   if (assetArgs)
  19.       newURL  = assetArgs;
  20.   if ((newURL == '')  && bDialogState) {  return ''; }
  21.   
  22.   // Return the html tag that should be inserted
  23.   return '<EMBED SRC="' + newURL + '" WIDTH="32" HEIGHT="32"></EMBED>';
  24.  
  25. }
  26.  
  27.